<template>
	<div class="problem-feedback">
		<top-header title="反馈记录" />
		<div class="problem-feedback-content">
			<div class="problem-feedback-content__component">
				<feedback-record-card :list="feedback_record_list"/>
			</div>
		</div>
	</div>
</template>

<script>
import TopHeader from '@/components/TopHeader';
import FeedbackRecordCard from './component/FeedbackRecordCard';
import cookie from '@/utils/cookie';

export default {
	name: 'index',
	components: {
		TopHeader,
		FeedbackRecordCard,
	},
	data() {
		return {
      feedback_record_list: [], //反馈列表
    };
	},
	mounted() {
    const USER_ID = JSON.parse(cookie.get('userLogin')).id;
    this.getProblemsList(USER_ID);
  },
	methods: {
    getProblemsList(user_id) { //获取问题反馈列表
      _api.api_userPortal_sysQuestion_getListByCon({
        user_id,
      }).then(res => {
        this.feedback_record_list = res.data.data;
				console.log(this.feedback_record_list);
      }).catch(error => {
        console.log(error);
      })
    }
  },
};
</script>

<style lang="scss" scoped>
.problem-feedback-content {
	border-top: 0.024155rem solid #e8e8e8;
  padding-top: .193237rem;
}
</style>
